.class Lcom/esfile/screen/recorder/media/c$h$a;
.super Ljava/lang/Object;
.source "DuVideoStitcher.java"

# interfaces
.implements Les/s9$b;


# annotations
.annotation system Ldalvik/annotation/EnclosingClass;
    value = Lcom/esfile/screen/recorder/media/c$h;
.end annotation

.annotation system Ldalvik/annotation/InnerClass;
    accessFlags = 0x0
    name = null
.end annotation


# instance fields
.field final synthetic a:Lcom/esfile/screen/recorder/media/c$h;


# direct methods
.method constructor <init>(Lcom/esfile/screen/recorder/media/c$h;)V
    .locals 0

    .line 1
    iput-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public a(Les/s9;Landroid/media/MediaFormat;Landroid/media/MediaFormat;)V
    .locals 2

    const-string p1, "rotation-degrees"

    .line 2
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object v0

    invoke-virtual {v0}, Les/j9;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    return-void

    :cond_0
    if-eqz p2, :cond_1

    .line 3
    :try_start_0
    iget-object v0, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {v0}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object v0

    new-instance v1, Les/k9;

    invoke-direct {v1, p2}, Les/k9;-><init>(Landroid/media/MediaFormat;)V

    invoke-virtual {v0, v1}, Les/j9;->a(Les/l9;)V

    goto :goto_0

    :catch_0
    move-exception p1

    goto :goto_1

    :cond_1
    :goto_0
    if-eqz p3, :cond_3

    .line 4
    invoke-virtual {p3, p1}, Landroid/media/MediaFormat;->containsKey(Ljava/lang/String;)Z

    move-result p2

    if-eqz p2, :cond_2

    const/4 p2, 0x0

    .line 5
    invoke-virtual {p3, p1, p2}, Landroid/media/MediaFormat;->setInteger(Ljava/lang/String;I)V

    .line 6
    :cond_2
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object p1

    new-instance p2, Les/k9;

    invoke-direct {p2, p3}, Les/k9;-><init>(Landroid/media/MediaFormat;)V

    invoke-virtual {p1, p2}, Les/j9;->a(Les/l9;)V

    .line 7
    :cond_3
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object p1

    invoke-virtual {p1}, Les/j9;->c()Z

    .line 8
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object p1

    invoke-virtual {p1}, Les/j9;->d()V
    :try_end_0
    .catch Ljava/lang/Exception; {:try_start_0 .. :try_end_0} :catch_0

    goto :goto_2

    .line 9
    :goto_1
    invoke-virtual {p1}, Ljava/lang/Exception;->printStackTrace()V

    .line 10
    iget-object p2, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p2, p1}, Lcom/esfile/screen/recorder/media/c$h;->a(Lcom/esfile/screen/recorder/media/c$h;Ljava/lang/Exception;)V

    :goto_2
    return-void
.end method

.method public a(Les/s9;Lcom/esfile/screen/recorder/media/util/l;Z)V
    .locals 2

    .line 11
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1}, Lcom/esfile/screen/recorder/media/c$h;->f(Lcom/esfile/screen/recorder/media/c$h;)Z

    move-result p1

    if-eqz p1, :cond_0

    .line 12
    invoke-virtual {p2}, Lcom/esfile/screen/recorder/media/util/l;->a()V

    return-void

    .line 13
    :cond_0
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    iget-wide v0, p2, Lcom/esfile/screen/recorder/media/util/l;->c:J

    invoke-static {p1, v0, v1, p3}, Lcom/esfile/screen/recorder/media/c$h;->a(Lcom/esfile/screen/recorder/media/c$h;JZ)J

    move-result-wide v0

    iput-wide v0, p2, Lcom/esfile/screen/recorder/media/util/l;->c:J

    .line 14
    iget-object p1, p2, Lcom/esfile/screen/recorder/media/util/l;->f:Landroid/media/MediaCodec$BufferInfo;

    iput-wide v0, p1, Landroid/media/MediaCodec$BufferInfo;->presentationTimeUs:J

    .line 15
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1}, Lcom/esfile/screen/recorder/media/c$h;->e(Lcom/esfile/screen/recorder/media/c$h;)Les/j9;

    move-result-object p1

    invoke-virtual {p1, p3, p2}, Les/j9;->a(ZLcom/esfile/screen/recorder/media/util/l;)V

    return-void
.end method

.method public a(Les/s9;Ljava/lang/Exception;Z)V
    .locals 0

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p1, p2}, Lcom/esfile/screen/recorder/media/c$h;->a(Lcom/esfile/screen/recorder/media/c$h;Ljava/lang/Exception;)V

    return-void
.end method

.method public a(Les/s9;Z)V
    .locals 0

    return-void
.end method

.method public b(Les/s9;Z)V
    .locals 1

    .line 1
    iget-object p1, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    monitor-enter p1

    const/4 v0, 0x1

    if-eqz p2, :cond_0

    .line 2
    :try_start_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p2, v0}, Lcom/esfile/screen/recorder/media/c$h;->a(Lcom/esfile/screen/recorder/media/c$h;Z)Z

    goto :goto_0

    .line 3
    :cond_0
    iget-object p2, p0, Lcom/esfile/screen/recorder/media/c$h$a;->a:Lcom/esfile/screen/recorder/media/c$h;

    invoke-static {p2, v0}, Lcom/esfile/screen/recorder/media/c$h;->b(Lcom/esfile/screen/recorder/media/c$h;Z)Z

    .line 4
    :goto_0
    monitor-exit p1

    return-void

    :catchall_0
    move-exception p2

    monitor-exit p1
    :try_end_0
    .catchall {:try_start_0 .. :try_end_0} :catchall_0

    throw p2
.end method
